<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:fragment="jsFile">
    <script src="./layui/layui.js" th:src="@{/layui/layui.js}"></script>
    <script th:inline="javascript" type="text/javascript">
        // 获取项目路径
        var projectPath = [[${#httpServletRequest.getContextPath()}]];
    </script>
</div>
</body>